// ml:run = $bin < input
#include <iostream>
#include <cstring>
#include <cstdio>
#include <algorithm>
using namespace std;
int n;
int main()
{
    //freopen("java2016.in", "r", stdin);
    //freopen("java2016.out", "w", stdout);
    scanf("%d", &n);
    if (n==0)
        printf("?/?/?\n");
    else{
        printf("a = ? max ?\n");
        if (n%2==1) printf("a");
        n/=2;
        int cnt=1;
        while(n){
            if (n%2==1){
                printf(" + ( a + a )");
                for (int i=1;i<cnt;i++)
                    printf("* ( a + a )");
            }
            cnt++;
            n/=2;
        }
        printf("\n");
    }
    return 0;
}

